import axios from '@/functions/request';

function getList(params) {
    return new Promise((resolve, reject)=>{
        axios.formPost( "/api/flow/deploy/getList",params).then(res=>{
            resolve(res)
        }).catch(e => {
            reject(e) 
        });
    })
}

function delDeployment(params) {
    return new Promise((resolve, reject)=>{
        axios.formPost( "/api/flow/deploy/doDelDeployment",params).then(res=>{
            resolve(res)
        }).catch(e => {
            reject(e) 
        });
    })
}


export {
    getList,
    delDeployment
}
